import React, { useState } from 'react';
import './index.css';

function Center() {
  return (
    <div>
      <button onClick={clickHandle}>回到首页</button>
    </div>
  )
}

function clickHandle() {
  wx.switchTab({
    url: '/index',
  })
}

export default Center
